package edu.tyut.ncp.service;

import edu.tyut.ncp.entity.Shoppingcart;
import edu.tyut.ncp.model.ShoppingModel;
import org.springframework.stereotype.Service;

import java.util.List;

public interface ShoppingcartService {

    void add(Shoppingcart shoppingcart);

    void update(Shoppingcart shoppingcart);

    void delete(Integer id);

    List<ShoppingModel> selectByUsername();

    List<ShoppingModel> selectByUserOrderId(Integer orderId);
}
